<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"
	prefix="decorator"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<decorator:usePage id="decoratedPage" />
<html>

	<head>
		<title>
			<decorator:title default="账本" />
		</title>
		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" type="text/css"
			href="extjs/resources/css/ext-all.css">
		<link rel="stylesheet" type="text/css"
			href="extjs/resources/css/ext-icon.css">
		<style type="text/css">
#loading-mask {
	Z-INDEX: 20000;
	LEFT: 0px;
	WIDTH: 100%;
	POSITION: absolute;
	TOP: 0px;
	HEIGHT: 100%;
	BACKGROUND-COLOR: white
}

#loading {
	PADDING-RIGHT: 2px;
	PADDING-LEFT: 2px;
	Z-INDEX: 20001;
	LEFT: 45%;
	PADDING-BOTTOM: 2px;
	PADDING-TOP: 2px;
	POSITION: absolute;
	TOP: 40%;
	HEIGHT: auto
}

#loading IMG {
	MARGIN-BOTTOM: 5px
}

#loading .loading-indicator {
	PADDING-RIGHT: 10px;
	PADDING-LEFT: 10px;
	BACKGROUND: white;
	PADDING-BOTTOM: 10px;
	MARGIN: 0px;
	FONT: 12px 宋体, arial, helvetica;
	COLOR: #555;
	PADDING-TOP: 10px;
	HEIGHT: auto;
	TEXT-ALIGN: center
}
</style>
		<script type="text/javascript" src="extjs/ext-all-debug-w-comments.js"></script>
		<script type="text/javascript" src="extjs/ext-lang-zh_CN.js"></script>

		<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript">
<!--
	Ext.QuickTips.init();
	//jquery让出$符号
	var jq = jQuery.noConflict();
	//初始界面遮罩层
	Ext.EventManager.on(window, 'load', function(){
	 setTimeout(
		 function() {
			Ext.get('loading').remove();
			Ext.get('loading-mask').fadeOut({remove:true});
			}, 200); 

	});
	
	//显示实时的时间
	function showTime() {
	var date = new Date();
	var h = date.getHours();
	h = h < 10 ? '0' + h : h;
	var m = date.getMinutes();
	m = m < 10 ? '0' + m : m;
	var s = date.getSeconds();
	s = s < 10 ? '0' + s : s;
	document.getElementById('realTime').innerHTML = h + ":" + m + ":" + s;
}
window.onload = function() {
	setInterval("showTime()", 1000);
}
//-->
</script>
		<decorator:head />
	</head>
	<body>
		<DIV id="loading-mask"></DIV>
		<div id="loading">
			<DIV class="loading-indicator">
				<IMG style="MARGIN-RIGHT: 8px" height="32" src="images/loading.gif"
					width="36" align="absMiddle">
				正在初始化,请稍等...
			</DIV>
		</div>
		<decorator:body />
	</body>
</html>
